package com.debao.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.debao.system.mapper.StadiumTableMapper;
import com.debao.system.domain.StadiumTable;
import com.debao.system.service.IStadiumTableService;

/**
 * 场馆的台桌Service业务层处理
 * 
 * @author DeBao
 * @date 2024-06-13
 */
@Service
public class StadiumTableServiceImpl implements IStadiumTableService 
{
    @Autowired
    private StadiumTableMapper stadiumTableMapper;

    /**
     * 查询场馆的台桌
     * 
     * @param id 场馆的台桌主键
     * @return 场馆的台桌
     */
    @Override
    public StadiumTable selectStadiumTableById(Long id)
    {
        return stadiumTableMapper.selectStadiumTableById(id);
    }

    /**
     * 查询场馆的台桌列表
     * 
     * @param stadiumTable 场馆的台桌
     * @return 场馆的台桌
     */
    @Override
    public List<StadiumTable> selectStadiumTableList(StadiumTable stadiumTable)
    {
        return stadiumTableMapper.selectStadiumTableList(stadiumTable);
    }

    /**
     * 新增场馆的台桌
     * 
     * @param stadiumTable 场馆的台桌
     * @return 结果
     */
    @Override
    public int insertStadiumTable(StadiumTable stadiumTable)
    {
        return stadiumTableMapper.insertStadiumTable(stadiumTable);
    }

    /**
     * 修改场馆的台桌
     * 
     * @param stadiumTable 场馆的台桌
     * @return 结果
     */
    @Override
    public int updateStadiumTable(StadiumTable stadiumTable)
    {
        return stadiumTableMapper.updateStadiumTable(stadiumTable);
    }

    /**
     * 批量删除场馆的台桌
     * 
     * @param ids 需要删除的场馆的台桌主键
     * @return 结果
     */
    @Override
    public int deleteStadiumTableByIds(Long[] ids)
    {
        return stadiumTableMapper.deleteStadiumTableByIds(ids);
    }

    /**
     * 删除场馆的台桌信息
     * 
     * @param id 场馆的台桌主键
     * @return 结果
     */
    @Override
    public int deleteStadiumTableById(Long id)
    {
        return stadiumTableMapper.deleteStadiumTableById(id);
    }
}
